﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PrototypeZGame
{
    public abstract class AIController : Controller
    {
        public AIController(World world)
            : base(world)
        {

        }

        public override void newTurn()
        {
            unit.newTurn();

            int r = world.rand.Next(4);

            if (r == 0)
                walk(Direction.North);
            if (r == 1)
                walk(Direction.South);
            if (r == 2)
                walk(Direction.West);
            if (r == 3)
                walk(Direction.East);
        }

        //public override void UnitDied()
        //{
        //    //base.UnitDied();
        //    //world.aiControllers.Remove(this);

        //}


    }


}
